<?php
	include_once "thongbao_db.php";
	
	class thongbao_bs
	{
		//--------------Field---------------
		private $MaNguoiDung = 0;
		public function SetMaNguoiDung($MaNguoiDung)         { $this->MaNguoiDung = $MaNguoiDung;         }
		public function GetMaNguoiDung()                     { return $this->MaNguoiDung;                 }
		
		private $NoiDungThongBao = "";
		public function SetNoiDungThongBao($NoiDungThongBao) { $this->NoiDungThongBao = $NoiDungThongBao; }
		public function GetNoiDungThongBao()                 { return $this->NoiDungThongBao;             }
		
		private $LienKet  = "";
		public function SetThoiGian($ThoiGian)               { $this->ThoiGian = $ThoiGian;               }
		public function GetThoiGian()                        { return $this->ThoiGian;                    }
		
		private $ThoiGian = "0000-00-00 00:00:00";
		public function SetThoiGian($ThoiGian)               { $this->ThoiGian = $ThoiGian;               }
		public function GetThoiGian()                        { return $this->ThoiGian;                    }
		
		//--------------Method---------------
		public function Them()
		{
			$data = new thongbao_db();
			return $data->Them($this->MaNguoiDung, $this->NoiDungThongBao, $this->LienKet, $this->ThoiGian);
		}
		
		public function Xoa()
		{
			$data = new thongbao_db();
			return $data->Xoa($this->MaNguoiDung);
		}
		
		public function LayDanhSach($this->MaNguoiDung)
		{
			$data = new thongbao_db();
			return $data->LayDanhSach($this->MaNguoiDung);
		}
	}
?>